package com.zy.clothing.service;

import com.github.pagehelper.PageHelper;
import com.zy.clothing.dao.ClothingDbMapper;
import com.zy.clothing.domain.ClothingDb;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @PROJECT_NAME: clothing
 * @DESCRIPTION:
 * @USER: 周佳佳
 * @DATE: 2020/3/11 15:28
 */
@Service
public class ClothingDbServiceimpl implements ClothingDbService {
    @Resource
    ClothingDbMapper clothingDbMapper;
    @Override
    public int deleteByPrimaryKey(Integer clId) {
        return clothingDbMapper.deleteByPrimaryKey(clId);
    }

    @Override
    public int insert(ClothingDb record) {
        return 0;
    }

    @Override
    public int insertSelective(ClothingDb record) {
        return clothingDbMapper.insertSelective(record);
    }


    @Override
    public List<ClothingDb> selectByPrimaryKey(ClothingDb clothingDb,Integer pageNum, Integer pageSize) {
        PageHelper.startPage(pageNum, pageSize);
        return clothingDbMapper.selectByPrimaryKey(clothingDb);
    }

    @Override
    public int updateByPrimaryKeySelective(ClothingDb record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(ClothingDb record) {
        return 0;
    }

    @Override
    public int countAll(ClothingDb clothingDb) {
        return clothingDbMapper.countAll(clothingDb);
    }

    @Override
    public List<ClothingDb> selectType(ClothingDb clothingDb) {
        return clothingDbMapper.selectByPrimaryKey(clothingDb);
    }

    @Override
    public ClothingDb findById(Integer clId) {
        return clothingDbMapper.findById(clId);
    }
}
